package cn.ymkj.pojo;

import java.io.Serializable;

public class User implements Serializable {

    private Integer userId;
    private String username;
    private String password;
    private String nickname;
    private Integer age;
    private Integer sex; //0女  1男
    private String imgUrl;

    public Integer getUserId() {
        return userId;
    }

    public User(Integer userId, String username, String password, String nickname, Integer age, Integer sex, String imgUrl) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
        this.sex = sex;
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public User(Integer userId, String username, String password, String nickname, Integer age, Integer sex) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
        this.sex = sex;
    }

    public User() {
    }
}
